﻿using System.Collections.Generic;

namespace Enter.Utils
{
    public class PageSearchRequest<T>
    {
        public T Search { get; set; }
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public string Sort { get; set; }
    }

    public class PageResponse<T>
    {
        public PageResponse(long total, IList<T> rows)
        {
            Total = total;
            Rows = rows;
        }
        public IList<T> Rows { get; set; }
        public long Total { get; set; }
    }
}
